package main
import(
	"fmt"
)

type Person struct{
	Name string
}
func(p *Person)test(){
	p.Name ="jack"
	fmt.Println("test() name=",p.Name)
}

func main(){
	p := Person{"tom"}
	p.test()
	fmt.Println(p.Name) // tom
}